package mushystuff.dtb.core.service.to;

import java.util.Date;

@OGNLAssociation("Product")
public class ProductTO implements TransferObject {
	
	@OGNLExpression(value="id")
	private long id;
	
	@OGNLExpression("name")
	private String name;
	
	@OGNLExpression("active")
	private boolean active;
	
	@OGNLExpression(value="lastModified", setable=false)
	private Date lastModified;

	public ProductTO() {
		super();
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isActive() {
		return active;
	}

	public void setActive(boolean active) {
		this.active = active;
	}

	public Date getLastModified() {
		return lastModified;
	}

}
